﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;

namespace AppFlat.Domain.Models
{
    /// <summary>
    /// 开发者
    /// </summary>
    [Serializable]
    public class DevUser
    {
        public int Id { get; set; }
        [StringLength(20)]
        [Required]
        public string Name { get; set; }

        [StringLength(20)]
        [Required]
        public string Password { get; set; }

        [StringLength(20)]
        public string Email { get; set; }

        public int State { get; set; }

        [JsonIgnore]
        public virtual ICollection<AppInfo> AppInfos { get; set; }
    }
}
